﻿<UserControl x:Class="TicTacGadget.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480">
    <UserControl.Resources>
        <Storyboard x:Name="RestartGameStoryboard">
            <DoubleAnimation From="0" To="1"
                             Duration="0:0:1"
                             Storyboard.TargetName="RestartPanel"
                             Storyboard.TargetProperty="Opacity"/>
        </Storyboard>
    </UserControl.Resources>
    <Grid x:Name="LayoutRoot" Background="WhiteSmoke">
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*" />
                <ColumnDefinition x:Name="HistoryColumn" Width="0" />
            </Grid.ColumnDefinitions>
            <Grid x:Name="GameArea"/>
            <Grid Name="Cementary" Grid.Column="1">
                <Grid.RowDefinitions>
                    <RowDefinition Height="*" />
                    <RowDefinition Height="*" />
                    <RowDefinition Height="*" />
                </Grid.RowDefinitions>
            </Grid>
        </Grid>
        <Border x:Name="RestartPanel" Background="White" BorderBrush="Silver" BorderThickness="2" HorizontalAlignment="Center" VerticalAlignment="Center" CornerRadius="5" Opacity="0" Visibility="Collapsed">
            <StackPanel Margin="10">
                <TextBlock Margin="10">Start new game?</TextBlock>
                <StackPanel Orientation="Horizontal" Margin="10,0,10,10">
                    <Button Name="StartNewGameButton" Click="StartNewGameButton_Click" Content="Yes!" Margin="0,0,10,0"/>
                    <Button Name="CloseButton" Click="CloseButton_Click" Content="Not yet"/>
                </StackPanel>
            </StackPanel>
        </Border>
    </Grid>
</UserControl>
